<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/jquery-1.8.0.min.js"></script>
    <script>
        // $.getJSON("./datas/111.json", ({interests}) => {
        //     for (let j = 0; j < interests.length; j++) {
        //         let username = interests[j].user.name;
        //         let userImg = "user" + parseInt(Math.random() * 24) + ".png";
        //         let userSource = interests[j].rating.value;
        //         let userMsg = interests[j].comment.replace(/\n/g, "");
        //         let createTime = interests[j].create_time
        //         let filmId = 26615753;
        //         let sql = `insert into film_comment values (null,'${username}','${userImg}','${userSource}','${userMsg}','${createTime}','${filmId}');\n`;
        //         $("#comment").append(sql);
        //     }
        // },"json")

         $.getJSON("http://127.0.0.1/filmApi/loadFilmById.php?filmId=26636712", ({result:{castList}}) => {
            // console.log(castList);
            console.log(JSON.parse(castList));
        },"json")

    </script>
</head>

<body>
<pre id="comment"></pre>
</body>

</html>